﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WowCharacters
{
    public partial class LoadFromWeb : Form
    {
       
        public WoWForm WowFrm;
        public LoadFromWeb()
        {
            InitializeComponent();       
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
           
           button1.Text = "Loading";
           button1.Enabled = false;
           ((WoWForm)WowFrm).GetCharacterfromWeb(txtName.Text, txtserver.Text);
           button1.Text = "Download";
           button1.Enabled = true;
           LoadFromWeb.ActiveForm.Hide();
        }
   }
}
